﻿#region Header
//************************************************************************************
// Name: BizException
// Description: BizException
// Created On:  02-Aug-2011
// Created By:  Swathi
// Last Modified On:
// Last Modified By:
// Last Modified Reason:
//*************************************************************************************
#endregion Header
#region "using"

using System;
using System.Runtime.Serialization;

#endregion

namespace Base.Utils
{
    /// <summary>
    /// Custom Exception 
    /// </summary>
    [Serializable]
    public class BizException : Exception
    {
        //Public Sub New()
        //End Sub
        //Public Sub New(ByVal message As [String])
        //    MyBase.New(message)
        //End Sub

        public BizException()
        {
        }

        public BizException(string message, Exception inner)
            : base(message, inner)
        {
        }

        public BizException(string message)
            : base(message)
        {
        }

        protected BizException(SerializationInfo info, StreamingContext c)
            : base(info, c)
        {
            //If info IsNot Nothing Then
            //    _upgradeId = info.GetInt32("upgradeId")
            //End If
        }
    }

    #region "Enum"

    /// <summary>
    /// Exception
    /// </summary>
    public enum ExpMessages
    {
        UserAlreadyExists,
        UserNotExists,
        EmptyOrNullPassword,
        LoginFailure,
        UnAuthorizedAccess,
        NoRecord,
        DataConsistencyFailure,
        NullMailMessage
    }

    #endregion
}